<?php


namespace App\Models;


class LoginLog extends BaseModel
{
    protected $fillable = [
        'id',
        'type',
        'ip',
        'user_id',
        'desc',
        'client'
    ];

    const CLIENT_KEY = 'CT';

    public function getClientTextAttribute($key)
    {
        return \App\Facade\Code::get(self::CLIENT_KEY, $this->client);
    }
}
